package com.ktgj.customer.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ktgj.common.core.annotation.Excel;
import com.ktgj.common.core.web.domain.BaseEntity;

/**
 * 商品图片对象 mall_product_img
 * 
 * @author ruoyi
 * @date 2022-05-30
 */
public class MallProductImg extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long productImgId;

    /** 商品编号 */
    @Excel(name = "商品编号")
    private Long productId;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String imgPath;

    /** 类型 0 封面  1 商品图片 2秒杀展示图片 */
    @Excel(name = "类型 0 封面  1 商品图片 2秒杀展示图片")
    private Long typeId;

    /** 删除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deleteTime;

    /** 图片排序 */
    @Excel(name = "图片排序")
    private Long sortId;

    public void setProductImgId(Long productImgId) 
    {
        this.productImgId = productImgId;
    }

    public Long getProductImgId() 
    {
        return productImgId;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setImgPath(String imgPath) 
    {
        this.imgPath = imgPath;
    }

    public String getImgPath() 
    {
        return imgPath;
    }
    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }
    public void setDeleteTime(Date deleteTime) 
    {
        this.deleteTime = deleteTime;
    }

    public Date getDeleteTime() 
    {
        return deleteTime;
    }
    public void setSortId(Long sortId) 
    {
        this.sortId = sortId;
    }

    public Long getSortId() 
    {
        return sortId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("productImgId", getProductImgId())
            .append("productId", getProductId())
            .append("imgPath", getImgPath())
            .append("typeId", getTypeId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("deleteTime", getDeleteTime())
            .append("sortId", getSortId())
            .toString();
    }
}
